package com.gdut.huayan.entity.dto;

import lombok.Data;

@Data
public class PageQuery {

    private Integer page;

    private Integer size;

    private String search;

    private String orderKey;

    private String order;

    public Integer getSize() {
        if (this.size >= 50) {
            this.size = 50;
        }
        return size;
    }
}
